<template>
    <div template>
        <bases :tonextlink="tonextlink" title="日期选择">
            <van-date-picker v-model="currentDate" title="选择日期" :min-date="minDate" :max-date="maxDate" />
        </bases>
    </div>
</template>

<script>
import bases from './base.vue'
import { ref } from 'vue';
export default {
    props: ['tonextlink'],
    components: {
        bases
    },
    setup() {
        const currentDate = ref(['2021', '01', '01']);
        return {
            minDate: new Date(2020, 0, 1),
            maxDate: new Date(2025, 5, 1),
            currentDate,
        };
    },
}
</script>
